package com.hotel.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class FileServerConfig {

	@Value("#{fileServer.root}")
	private String root;
	
	@Value("#{fileServer.path}")
	private String path;
	
	@Value("#{fileServer.domain}")
	private String domain;
	
	@Value(value="#{fileServer.maxSize}")
	private int maxSize;

	public String getRoot() {
		return root;
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public int getMaxSize() {
		return maxSize;
	}

	public void setMaxSize(int maxSize) {
		this.maxSize = maxSize;
	}

	@Override
	public String toString() {
		return "FileServerConfig [root=" + root + ", path=" + path
				+ ", domain=" + domain + ", maxSize=" + maxSize + "]";
	}
	
	public FileServerConfig() {
	System.err.println("fileserverconnfig");	
	}
}
